.class public Lcom/jcraft/jsch/ChannelSftp;
.super Lcom/jcraft/jsch/ChannelSession;
.source "ChannelSftp.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/jcraft/jsch/ChannelSftp$Header;,
        Lcom/jcraft/jsch/ChannelSftp$LsEntry;,
        Lcom/jcraft/jsch/ChannelSftp$LsEntrySelector;,
        Lcom/jcraft/jsch/ChannelSftp$RequestQueue;
    }
.end annotation


# static fields
.field private static final i0:Ljava/lang/String;


# instance fields
.field private H:I

.field private I:Lcom/jcraft/jsch/Buffer;

.field private J:Lcom/jcraft/jsch/Packet;

.field private K:Lcom/jcraft/jsch/Buffer;

.field private L:Lcom/jcraft/jsch/Packet;

.field private M:I

.field private N:I

.field private O:Ljava/lang/String;

.field private P:Ljava/util/Hashtable;

.field private Q:Ljava/io/InputStream;

.field private R:Ljava/io/InputStream;

.field private S:Z

.field private T:Ljava/lang/String;

.field private U:Ljava/lang/String;

.field private V:Ljava/lang/String;

.field private W:Ljava/lang/String;

.field private X:Z

.field private Y:Z

.field private Z:Lcom/jcraft/jsch/ChannelSftp$RequestQueue;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1
    sget-object v0, Ljava/io/File;->separator:Ljava/lang/String;

    sput-object v0, Lcom/jcraft/jsch/ChannelSftp;->i0:Ljava/lang/String;

    .line 2
    sget-char v0, Ljava/io/File;->separatorChar:C

    int-to-byte v0, v0

    const/16 v1, 0x5c

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/jcraft/jsch/ChannelSession;-><init>()V

    const/4 v0, 0x1

    .line 2
    iput v0, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    const/4 v1, 0x3

    .line 3
    iput v1, p0, Lcom/jcraft/jsch/ChannelSftp;->M:I

    .line 4
    iput v1, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    .line 5
    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->O:Ljava/lang/String;

    const/4 v1, 0x0

    .line 6
    iput-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->P:Ljava/util/Hashtable;

    .line 7
    iput-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->Q:Ljava/io/InputStream;

    .line 8
    iput-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    const/4 v1, 0x0

    .line 9
    iput-boolean v1, p0, Lcom/jcraft/jsch/ChannelSftp;->S:Z

    const-string v1, "UTF-8"

    .line 10
    iput-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    .line 11
    iput-boolean v0, p0, Lcom/jcraft/jsch/ChannelSftp;->X:Z

    .line 12
    new-instance v0, Lcom/jcraft/jsch/ChannelSftp$RequestQueue;

    const/16 v1, 0x10

    invoke-direct {v0, p0, v1}, Lcom/jcraft/jsch/ChannelSftp$RequestQueue;-><init>(Lcom/jcraft/jsch/ChannelSftp;I)V

    iput-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->Z:Lcom/jcraft/jsch/ChannelSftp$RequestQueue;

    const/high16 v0, 0x200000

    .line 13
    invoke-virtual {p0, v0}, Lcom/jcraft/jsch/Channel;->f(I)V

    .line 14
    invoke-virtual {p0, v0}, Lcom/jcraft/jsch/Channel;->e(I)V

    const v0, 0x8000

    .line 15
    invoke-virtual {p0, v0}, Lcom/jcraft/jsch/Channel;->d(I)V

    return-void
.end method

.method static synthetic a(Lcom/jcraft/jsch/ChannelSftp;)I
    .locals 0

    .line 2
    iget p0, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    return p0
.end method

.method static synthetic a(Lcom/jcraft/jsch/ChannelSftp;[BII)I
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 283
    invoke-direct {p0, p1, p2, p3}, Lcom/jcraft/jsch/ChannelSftp;->c([BII)I

    move-result p0

    return p0
.end method

.method static synthetic a(Lcom/jcraft/jsch/ChannelSftp;[BJ[BII)I
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 248
    invoke-direct/range {p0 .. p6}, Lcom/jcraft/jsch/ChannelSftp;->a([BJ[BII)I

    move-result p0

    return p0
.end method

.method private a([BJ[BII)I
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 249
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->L:Lcom/jcraft/jsch/Packet;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Packet;->b()V

    .line 250
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->K:Lcom/jcraft/jsch/Buffer;

    iget-object v1, v0, Lcom/jcraft/jsch/Buffer;->b:[B

    array-length v2, v1

    iget v0, v0, Lcom/jcraft/jsch/Buffer;->c:I

    add-int/lit8 v3, v0, 0xd

    add-int/lit8 v3, v3, 0x15

    array-length v4, p1

    add-int/2addr v3, v4

    add-int/2addr v3, p6

    add-int/lit8 v3, v3, 0x54

    if-ge v2, v3, :cond_0

    .line 251
    array-length p6, v1

    add-int/lit8 v0, v0, 0xd

    add-int/lit8 v0, v0, 0x15

    array-length v1, p1

    add-int/2addr v0, v1

    add-int/lit8 v0, v0, 0x54

    sub-int/2addr p6, v0

    .line 252
    :cond_0
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->K:Lcom/jcraft/jsch/Buffer;

    const/4 v1, 0x6

    array-length v2, p1

    add-int/lit8 v2, v2, 0x15

    add-int/2addr v2, p6

    invoke-direct {p0, v0, v1, v2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;BI)V

    .line 253
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->K:Lcom/jcraft/jsch/Buffer;

    iget v1, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    invoke-virtual {v0, v1}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 254
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->K:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0, p1}, Lcom/jcraft/jsch/Buffer;->d([B)V

    .line 255
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->K:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0, p2, p3}, Lcom/jcraft/jsch/Buffer;->a(J)V

    .line 256
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->K:Lcom/jcraft/jsch/Buffer;

    iget-object p3, p2, Lcom/jcraft/jsch/Buffer;->b:[B

    if-eq p3, p4, :cond_1

    .line 257
    invoke-virtual {p2, p4, p5, p6}, Lcom/jcraft/jsch/Buffer;->c([BII)V

    goto :goto_0

    .line 258
    :cond_1
    invoke-virtual {p2, p6}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 259
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->K:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p2, p6}, Lcom/jcraft/jsch/Buffer;->e(I)V

    .line 260
    :goto_0
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->h()Lcom/jcraft/jsch/Session;

    move-result-object p2

    iget-object p3, p0, Lcom/jcraft/jsch/ChannelSftp;->L:Lcom/jcraft/jsch/Packet;

    array-length p1, p1

    add-int/lit8 p1, p1, 0x15

    add-int/2addr p1, p6

    add-int/lit8 p1, p1, 0x4

    invoke-virtual {p2, p3, p0, p1}, Lcom/jcraft/jsch/Session;->a(Lcom/jcraft/jsch/Packet;Lcom/jcraft/jsch/Channel;I)V

    return p6
.end method

.method private a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 286
    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->m()V

    .line 287
    iget-object v0, p1, Lcom/jcraft/jsch/Buffer;->b:[B

    const/4 v1, 0x0

    const/16 v2, 0x9

    invoke-direct {p0, v0, v1, v2}, Lcom/jcraft/jsch/ChannelSftp;->c([BII)I

    .line 288
    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result v0

    add-int/lit8 v0, v0, -0x5

    iput v0, p2, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 289
    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->a()I

    move-result v0

    and-int/lit16 v0, v0, 0xff

    iput v0, p2, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 290
    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    iput p1, p2, Lcom/jcraft/jsch/ChannelSftp$Header;->c:I

    return-object p2
.end method

.method static synthetic a(Lcom/jcraft/jsch/ChannelSftp;Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 285
    invoke-direct {p0, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    return-object p2
.end method

.method private a([B)Lcom/jcraft/jsch/SftpATTRS;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    const/4 v1, 0x4

    .line 173
    :try_start_0
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->m([B)V

    .line 174
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {p1, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 175
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v2, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 176
    iget v2, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 177
    iget p1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 178
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v3, v2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v2, 0x69

    if-eq p1, v2, :cond_1

    const/16 v2, 0x65

    if-ne p1, v2, :cond_0

    .line 179
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    .line 180
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v2, p1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p1, 0x0

    throw p1

    .line 181
    :cond_0
    :try_start_1
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1

    .line 182
    :cond_1
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-static {p1}, Lcom/jcraft/jsch/SftpATTRS;->b(Lcom/jcraft/jsch/Buffer;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    return-object p1

    :catch_0
    move-exception p1

    .line 183
    instance-of v2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez v2, :cond_2

    .line 184
    new-instance v2, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v2, v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    .line 185
    :cond_2
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    throw p1
.end method

.method private a(BI)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 275
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v0, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;BI)V

    return-void
.end method

.method private a(B[B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/4 v0, 0x0

    .line 226
    invoke-direct {p0, p1, p2, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(B[BLjava/lang/String;)V

    return-void
.end method

.method private a(B[BLjava/lang/String;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 227
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Packet;->b()V

    .line 228
    array-length v0, p2

    add-int/lit8 v0, v0, 0x9

    if-nez p3, :cond_0

    .line 229
    invoke-direct {p0, p1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(BI)V

    .line 230
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget p3, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 v1, p3, 0x1

    iput v1, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    invoke-virtual {p1, p3}, Lcom/jcraft/jsch/Buffer;->c(I)V

    goto :goto_0

    .line 231
    :cond_0
    invoke-virtual {p3}, Ljava/lang/String;->length()I

    move-result p1

    add-int/lit8 p1, p1, 0x4

    add-int/2addr v0, p1

    const/16 p1, -0x38

    .line 232
    invoke-direct {p0, p1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(BI)V

    .line 233
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v1, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    invoke-virtual {p1, v1}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 234
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-static {p3}, Lcom/jcraft/jsch/Util;->c(Ljava/lang/String;)[B

    move-result-object p3

    invoke-virtual {p1, p3}, Lcom/jcraft/jsch/Buffer;->d([B)V

    .line 235
    :goto_0
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1, p2}, Lcom/jcraft/jsch/Buffer;->d([B)V

    .line 236
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->h()Lcom/jcraft/jsch/Session;

    move-result-object p1

    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    add-int/lit8 v0, v0, 0x4

    invoke-virtual {p1, p2, p0, v0}, Lcom/jcraft/jsch/Session;->a(Lcom/jcraft/jsch/Packet;Lcom/jcraft/jsch/Channel;I)V

    return-void
.end method

.method private a(B[B[BLjava/lang/String;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 237
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Packet;->b()V

    .line 238
    array-length v0, p2

    add-int/lit8 v0, v0, 0xd

    array-length v1, p3

    add-int/2addr v0, v1

    if-nez p4, :cond_0

    .line 239
    invoke-direct {p0, p1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(BI)V

    .line 240
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget p4, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 v1, p4, 0x1

    iput v1, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    invoke-virtual {p1, p4}, Lcom/jcraft/jsch/Buffer;->c(I)V

    goto :goto_0

    .line 241
    :cond_0
    invoke-virtual {p4}, Ljava/lang/String;->length()I

    move-result p1

    add-int/lit8 p1, p1, 0x4

    add-int/2addr v0, p1

    const/16 p1, -0x38

    .line 242
    invoke-direct {p0, p1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(BI)V

    .line 243
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v1, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    invoke-virtual {p1, v1}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 244
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-static {p4}, Lcom/jcraft/jsch/Util;->c(Ljava/lang/String;)[B

    move-result-object p4

    invoke-virtual {p1, p4}, Lcom/jcraft/jsch/Buffer;->d([B)V

    .line 245
    :goto_0
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1, p2}, Lcom/jcraft/jsch/Buffer;->d([B)V

    .line 246
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1, p3}, Lcom/jcraft/jsch/Buffer;->d([B)V

    .line 247
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->h()Lcom/jcraft/jsch/Session;

    move-result-object p1

    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    add-int/lit8 v0, v0, 0x4

    invoke-virtual {p1, p2, p0, v0}, Lcom/jcraft/jsch/Session;->a(Lcom/jcraft/jsch/Packet;Lcom/jcraft/jsch/Channel;I)V

    return-void
.end method

.method private a(II[BZ)V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 111
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->Q:Ljava/io/InputStream;

    const v1, 0x19000

    invoke-virtual {v0, v1}, Ljava/io/InputStream;->mark(I)V

    const/4 v0, 0x0

    new-array v0, v0, [B

    :goto_0
    const-string v1, "UTF-8"

    if-gtz p1, :cond_0

    goto :goto_4

    :cond_0
    if-lez p2, :cond_2

    .line 112
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v2}, Lcom/jcraft/jsch/Buffer;->n()V

    .line 113
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget-object v3, v2, Lcom/jcraft/jsch/Buffer;->b:[B

    array-length v4, v3

    iget v2, v2, Lcom/jcraft/jsch/Buffer;->c:I

    add-int v5, v2, p2

    if-le v4, v5, :cond_1

    move v3, p2

    goto :goto_1

    .line 114
    :cond_1
    array-length v3, v3

    sub-int/2addr v3, v2

    .line 115
    :goto_1
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget-object v4, v2, Lcom/jcraft/jsch/Buffer;->b:[B

    iget v2, v2, Lcom/jcraft/jsch/Buffer;->c:I

    invoke-direct {p0, v4, v2, v3}, Lcom/jcraft/jsch/ChannelSftp;->c([BII)I

    move-result v2

    .line 116
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v4, v3, Lcom/jcraft/jsch/Buffer;->c:I

    add-int/2addr v4, v2

    iput v4, v3, Lcom/jcraft/jsch/Buffer;->c:I

    sub-int/2addr p2, v2

    .line 117
    :cond_2
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v2}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v2

    .line 118
    iget v3, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    const/4 v4, 0x3

    if-gt v3, v4, :cond_3

    .line 119
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v3}, Lcom/jcraft/jsch/Buffer;->j()[B

    .line 120
    :cond_3
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-static {v3}, Lcom/jcraft/jsch/SftpATTRS;->b(Lcom/jcraft/jsch/Buffer;)Lcom/jcraft/jsch/SftpATTRS;

    if-nez p3, :cond_4

    const/4 v3, 0x1

    goto :goto_3

    :cond_4
    if-nez p4, :cond_5

    .line 121
    invoke-static {p3, v2}, Lcom/jcraft/jsch/Util;->a([B[B)Z

    move-result v3

    goto :goto_3

    .line 122
    :cond_5
    iget-boolean v3, p0, Lcom/jcraft/jsch/ChannelSftp;->X:Z

    if-nez v3, :cond_6

    .line 123
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v2, v3}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 124
    invoke-static {v3, v1}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v3

    goto :goto_2

    :cond_6
    move-object v3, v2

    .line 125
    :goto_2
    invoke-static {p3, v3}, Lcom/jcraft/jsch/Util;->b([B[B)Z

    move-result v3

    :goto_3
    if-eqz v3, :cond_8

    .line 126
    invoke-static {v0, v2}, Lcom/estrongs/android/util/f;->a([B[B)[B

    move-result-object v0

    .line 127
    array-length v2, v0

    const/16 v3, 0x400

    if-lt v2, v3, :cond_8

    .line 128
    :goto_4
    array-length p1, v0

    if-lez p1, :cond_7

    .line 129
    array-length p1, v0

    invoke-static {v0, p1}, Lcom/estrongs/android/util/f;->a([BI)Ljava/lang/String;

    move-result-object p1

    .line 130
    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-nez p2, :cond_7

    invoke-static {p1}, Ljava/nio/charset/Charset;->isSupported(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_7

    .line 131
    invoke-virtual {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->i(Ljava/lang/String;)V

    .line 132
    :cond_7
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->Q:Ljava/io/InputStream;

    invoke-virtual {p1}, Ljava/io/InputStream;->reset()V

    .line 133
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->l()V

    return-void

    :cond_8
    add-int/lit8 p1, p1, -0x1

    goto/16 :goto_0
.end method

.method private a(Lcom/jcraft/jsch/Buffer;BI)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0x5e

    .line 270
    invoke-virtual {p1, v0}, Lcom/jcraft/jsch/Buffer;->a(B)V

    .line 271
    iget v0, p0, Lcom/jcraft/jsch/Channel;->b:I

    invoke-virtual {p1, v0}, Lcom/jcraft/jsch/Buffer;->c(I)V

    add-int/lit8 v0, p3, 0x4

    .line 272
    invoke-virtual {p1, v0}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 273
    invoke-virtual {p1, p3}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 274
    invoke-virtual {p1, p2}, Lcom/jcraft/jsch/Buffer;->a(B)V

    return-void
.end method

.method private a(Lcom/jcraft/jsch/Buffer;I)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 280
    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->l()V

    .line 281
    iget-object v0, p1, Lcom/jcraft/jsch/Buffer;->b:[B

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1, p2}, Lcom/jcraft/jsch/ChannelSftp;->c([BII)I

    .line 282
    invoke-virtual {p1, p2}, Lcom/jcraft/jsch/Buffer;->e(I)V

    return-void
.end method

.method static synthetic a(Lcom/jcraft/jsch/ChannelSftp;J)V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 284
    invoke-direct {p0, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->c(J)V

    return-void
.end method

.method static synthetic a(Lcom/jcraft/jsch/ChannelSftp;Lcom/jcraft/jsch/Buffer;I)V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 279
    invoke-direct {p0, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    return-void
.end method

.method static synthetic a(Lcom/jcraft/jsch/ChannelSftp;[BJILcom/jcraft/jsch/ChannelSftp$RequestQueue;)V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 261
    invoke-direct/range {p0 .. p5}, Lcom/jcraft/jsch/ChannelSftp;->a([BJILcom/jcraft/jsch/ChannelSftp$RequestQueue;)V

    return-void
.end method

.method private a(Ljava/lang/String;Lcom/jcraft/jsch/SftpATTRS;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    const/4 v1, 0x4

    .line 186
    :try_start_0
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {p1, v2}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1

    invoke-direct {p0, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->b([BLcom/jcraft/jsch/SftpATTRS;)V

    .line 187
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {p1, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 188
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p2, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 189
    iget p2, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 190
    iget p1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 191
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v2, p2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 p2, 0x65

    if-ne p1, p2, :cond_1

    .line 192
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 193
    :cond_0
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p2, p1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p1, 0x0

    throw p1

    .line 194
    :cond_1
    :try_start_1
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    move-exception p1

    .line 195
    instance-of p2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez p2, :cond_2

    .line 196
    new-instance p2, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p2, v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw p2

    .line 197
    :cond_2
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    throw p1
.end method

.method private a([BI)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 219
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Packet;->b()V

    .line 220
    array-length v0, p1

    add-int/lit8 v0, v0, 0x11

    const/4 v1, 0x3

    invoke-direct {p0, v1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(BI)V

    .line 221
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v1, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    invoke-virtual {v0, v1}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 222
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0, p1}, Lcom/jcraft/jsch/Buffer;->d([B)V

    .line 223
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0, p2}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 224
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 225
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->h()Lcom/jcraft/jsch/Session;

    move-result-object p2

    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    array-length p1, p1

    add-int/lit8 p1, p1, 0x11

    add-int/lit8 p1, p1, 0x4

    invoke-virtual {p2, v0, p0, p1}, Lcom/jcraft/jsch/Session;->a(Lcom/jcraft/jsch/Packet;Lcom/jcraft/jsch/Channel;I)V

    return-void
.end method

.method private a([BJILcom/jcraft/jsch/ChannelSftp$RequestQueue;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 262
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Packet;->b()V

    .line 263
    array-length v0, p1

    add-int/lit8 v0, v0, 0x15

    const/4 v1, 0x5

    invoke-direct {p0, v1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(BI)V

    .line 264
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v1, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    invoke-virtual {v0, v1}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 265
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0, p1}, Lcom/jcraft/jsch/Buffer;->d([B)V

    .line 266
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0, p2, p3}, Lcom/jcraft/jsch/Buffer;->a(J)V

    .line 267
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0, p4}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 268
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->h()Lcom/jcraft/jsch/Session;

    move-result-object v0

    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    array-length p1, p1

    add-int/lit8 p1, p1, 0x15

    add-int/lit8 p1, p1, 0x4

    invoke-virtual {v0, v1, p0, p1}, Lcom/jcraft/jsch/Session;->a(Lcom/jcraft/jsch/Packet;Lcom/jcraft/jsch/Channel;I)V

    if-eqz p5, :cond_0

    .line 269
    iget p1, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 p1, p1, -0x1

    invoke-virtual {p5, p1, p2, p3, p4}, Lcom/jcraft/jsch/ChannelSftp$RequestQueue;->a(IJI)V

    :cond_0
    return-void
.end method

.method private a([BLcom/jcraft/jsch/SftpATTRS;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 210
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Packet;->b()V

    .line 211
    array-length v0, p1

    add-int/lit8 v0, v0, 0x9

    const/4 v1, 0x4

    if-eqz p2, :cond_0

    invoke-virtual {p2}, Lcom/jcraft/jsch/SftpATTRS;->l()I

    move-result v2

    goto :goto_0

    :cond_0
    const/4 v2, 0x4

    :goto_0
    add-int/2addr v0, v2

    const/16 v2, 0xe

    invoke-direct {p0, v2, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(BI)V

    .line 212
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v2, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 v3, v2, 0x1

    iput v3, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    invoke-virtual {v0, v2}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 213
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0, p1}, Lcom/jcraft/jsch/Buffer;->d([B)V

    if-eqz p2, :cond_1

    .line 214
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p2, v0}, Lcom/jcraft/jsch/SftpATTRS;->a(Lcom/jcraft/jsch/Buffer;)V

    goto :goto_1

    .line 215
    :cond_1
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 216
    :goto_1
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->h()Lcom/jcraft/jsch/Session;

    move-result-object v0

    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    array-length p1, p1

    add-int/lit8 p1, p1, 0x9

    if-eqz p2, :cond_2

    invoke-virtual {p2}, Lcom/jcraft/jsch/SftpATTRS;->l()I

    move-result p2

    goto :goto_2

    :cond_2
    const/4 p2, 0x4

    :goto_2
    add-int/2addr p1, p2

    add-int/2addr p1, v1

    invoke-virtual {v0, v2, p0, p1}, Lcom/jcraft/jsch/Session;->a(Lcom/jcraft/jsch/Packet;Lcom/jcraft/jsch/Channel;I)V

    return-void
.end method

.method private a([B[B)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 217
    iget-boolean v0, p0, Lcom/jcraft/jsch/ChannelSftp;->S:Z

    if-eqz v0, :cond_0

    const-string v0, "posix-rename@openssh.com"

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    const/16 v1, 0x12

    .line 218
    invoke-direct {p0, v1, p1, p2, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(B[B[BLjava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/jcraft/jsch/ChannelSftp;[BLcom/jcraft/jsch/ChannelSftp$Header;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 207
    invoke-direct {p0, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->a([BLcom/jcraft/jsch/ChannelSftp$Header;)Z

    move-result p0

    return p0
.end method

.method static synthetic a(Lcom/jcraft/jsch/ChannelSftp;[ILcom/jcraft/jsch/ChannelSftp$Header;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 198
    invoke-direct {p0, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->a([ILcom/jcraft/jsch/ChannelSftp$Header;)Z

    move-result p0

    return p0
.end method

.method private a(Ljava/lang/String;[[B)Z
    .locals 1

    const-string v0, "UTF-8"

    .line 276
    invoke-static {p1, v0}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1

    if-eqz p2, :cond_0

    const/4 v0, 0x0

    .line 277
    aput-object p1, p2, v0

    .line 278
    :cond_0
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->b([B)Z

    move-result p1

    return p1
.end method

.method private a([BLcom/jcraft/jsch/ChannelSftp$Header;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 208
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->c([B)V

    const/4 p1, 0x0

    .line 209
    invoke-direct {p0, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->a([ILcom/jcraft/jsch/ChannelSftp$Header;)Z

    move-result p1

    return p1
.end method

.method private a([ILcom/jcraft/jsch/ChannelSftp$Header;)Z
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 199
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v0, p2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 200
    iget v0, p2, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 201
    iget v1, p2, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    if-eqz p1, :cond_0

    const/4 v2, 0x0

    .line 202
    iget p2, p2, Lcom/jcraft/jsch/ChannelSftp$Header;->c:I

    aput p2, p1, v2

    .line 203
    :cond_0
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 p1, 0x65

    if-ne v1, p1, :cond_2

    .line 204
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    if-nez p1, :cond_1

    const/4 p1, 0x1

    return p1

    .line 205
    :cond_1
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p2, p1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V

    const/4 p1, 0x0

    throw p1

    .line 206
    :cond_2
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    const/4 p2, 0x4

    const-string v0, ""

    invoke-direct {p1, p2, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1
.end method

.method static synthetic b(Lcom/jcraft/jsch/ChannelSftp;)Ljava/io/InputStream;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/jcraft/jsch/ChannelSftp;->Q:Ljava/io/InputStream;

    return-object p0
.end method

.method private b(Lcom/jcraft/jsch/Buffer;I)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 29
    iget v0, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    const/4 v1, 0x3

    if-lt v0, v1, :cond_0

    .line 30
    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->d()I

    move-result v0

    const/4 v1, 0x4

    if-lt v0, v1, :cond_0

    .line 31
    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object p1

    .line 32
    new-instance v0, Lcom/jcraft/jsch/SftpException;

    const-string v1, "UTF-8"

    invoke-static {p1, v1}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p2, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v0

    .line 33
    :cond_0
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    const-string v0, "Failure"

    invoke-direct {p1, p2, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1
.end method

.method private b([BLcom/jcraft/jsch/SftpATTRS;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 20
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Packet;->b()V

    .line 21
    array-length v0, p1

    const/16 v1, 0x9

    add-int/2addr v0, v1

    invoke-virtual {p2}, Lcom/jcraft/jsch/SftpATTRS;->l()I

    move-result v2

    add-int/2addr v0, v2

    invoke-direct {p0, v1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(BI)V

    .line 22
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v2, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    add-int/lit8 v3, v2, 0x1

    iput v3, p0, Lcom/jcraft/jsch/ChannelSftp;->H:I

    invoke-virtual {v0, v2}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 23
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0, p1}, Lcom/jcraft/jsch/Buffer;->d([B)V

    .line 24
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p2, v0}, Lcom/jcraft/jsch/SftpATTRS;->a(Lcom/jcraft/jsch/Buffer;)V

    .line 25
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->h()Lcom/jcraft/jsch/Session;

    move-result-object v0

    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    array-length p1, p1

    add-int/2addr p1, v1

    invoke-virtual {p2}, Lcom/jcraft/jsch/SftpATTRS;->l()I

    move-result p2

    add-int/2addr p1, p2

    add-int/lit8 p1, p1, 0x4

    invoke-virtual {v0, v2, p0, p1}, Lcom/jcraft/jsch/Session;->a(Lcom/jcraft/jsch/Packet;Lcom/jcraft/jsch/Channel;I)V

    return-void
.end method

.method private b([B)Z
    .locals 6

    .line 26
    array-length v0, p1

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    if-lt v2, v0, :cond_0

    return v1

    .line 27
    :cond_0
    aget-byte v3, p1, v2

    const/16 v4, 0x2a

    const/4 v5, 0x1

    if-eq v3, v4, :cond_3

    aget-byte v3, p1, v2

    const/16 v4, 0x3f

    if-ne v3, v4, :cond_1

    goto :goto_1

    .line 28
    :cond_1
    aget-byte v3, p1, v2

    const/16 v4, 0x5c

    if-ne v3, v4, :cond_2

    add-int/lit8 v3, v2, 0x1

    if-ge v3, v0, :cond_2

    move v2, v3

    :cond_2
    add-int/2addr v2, v5

    goto :goto_0

    :cond_3
    :goto_1
    return v5
.end method

.method private c([BII)I
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    move v0, p2

    :goto_0
    if-gtz p3, :cond_0

    sub-int/2addr v0, p2

    return v0

    .line 6
    :cond_0
    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->Q:Ljava/io/InputStream;

    invoke-virtual {v1, p1, v0, p3}, Ljava/io/InputStream;->read([BII)I

    move-result v1

    if-lez v1, :cond_1

    add-int/2addr v0, v1

    sub-int/2addr p3, v1

    goto :goto_0

    .line 7
    :cond_1
    new-instance p1, Ljava/io/IOException;

    const-string p2, "inputstream is closed"

    invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method static synthetic c(Lcom/jcraft/jsch/ChannelSftp;)Lcom/jcraft/jsch/Buffer;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    return-object p0
.end method

.method private c(J)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    :goto_0
    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-gtz v2, :cond_0

    goto :goto_1

    .line 8
    :cond_0
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->Q:Ljava/io/InputStream;

    invoke-virtual {v2, p1, p2}, Ljava/io/InputStream;->skip(J)J

    move-result-wide v2

    cmp-long v4, v2, v0

    if-gtz v4, :cond_1

    :goto_1
    return-void

    :cond_1
    sub-long/2addr p1, v2

    goto :goto_0
.end method

.method private c([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/4 v0, 0x4

    .line 5
    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(B[B)V

    return-void
.end method

.method static synthetic d(Lcom/jcraft/jsch/ChannelSftp;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    return p0
.end method

.method private d([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0xa

    .line 16
    invoke-direct {p0, p1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a([BI)V

    return-void
.end method

.method static synthetic e(Lcom/jcraft/jsch/ChannelSftp;)Lcom/jcraft/jsch/ChannelSftp$RequestQueue;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jcraft/jsch/ChannelSftp;->Z:Lcom/jcraft/jsch/ChannelSftp$RequestQueue;

    return-object p0
.end method

.method private e([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0xb

    .line 3
    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(B[B)V

    return-void
.end method

.method private f([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/4 v0, 0x1

    .line 24
    invoke-direct {p0, p1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a([BI)V

    return-void
.end method

.method private g([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0x1a

    .line 18
    invoke-direct {p0, p1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a([BI)V

    return-void
.end method

.method private h([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0xc

    .line 18
    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(B[B)V

    return-void
.end method

.method private i([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0x13

    .line 1
    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(B[B)V

    return-void
.end method

.method private j([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0x10

    .line 8
    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(B[B)V

    return-void
.end method

.method private k([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0xd

    .line 15
    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(B[B)V

    return-void
.end method

.method private k(Ljava/lang/String;)[B
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;,
            Ljava/io/IOException;,
            Ljava/lang/Exception;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {p1, v0}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->j([B)V

    .line 2
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {p1, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 3
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 4
    iget v0, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 5
    iget p1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 6
    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v0, 0x65

    if-eq p1, v0, :cond_1

    const/16 v1, 0x68

    if-ne p1, v1, :cond_0

    goto :goto_0

    .line 7
    :cond_0
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    const/4 v0, 0x4

    const-string v1, ""

    invoke-direct {p1, v0, v1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1

    :cond_1
    :goto_0
    const/4 v1, 0x0

    if-eq p1, v0, :cond_4

    .line 8
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    :goto_1
    add-int/lit8 v0, p1, -0x1

    if-gtz p1, :cond_2

    return-object v1

    .line 9
    :cond_2
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v1

    .line 10
    iget p1, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    const/4 v2, 0x3

    if-gt p1, v2, :cond_3

    .line 11
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->j()[B

    .line 12
    :cond_3
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-static {p1}, Lcom/jcraft/jsch/SftpATTRS;->b(Lcom/jcraft/jsch/Buffer;)Lcom/jcraft/jsch/SftpATTRS;

    move p1, v0

    goto :goto_1

    .line 13
    :cond_4
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    .line 14
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V

    goto :goto_3

    :goto_2
    throw v1

    :goto_3
    goto :goto_2
.end method

.method private l(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {p1, v0}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a([B)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object p1

    return-object p1
.end method

.method private l([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0xf

    .line 2
    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(B[B)V

    return-void
.end method

.method private m(Ljava/lang/String;)Ljava/util/Vector;
    .locals 16
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    .line 43
    new-instance v2, Ljava/util/Vector;

    invoke-direct {v2}, Ljava/util/Vector;-><init>()V

    const/16 v3, 0x2f

    .line 44
    invoke-virtual {v1, v3}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v3

    if-gez v3, :cond_0

    .line 45
    invoke-static/range {p1 .. p1}, Lcom/jcraft/jsch/Util;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    return-object v2

    :cond_0
    const/4 v4, 0x1

    if-nez v3, :cond_1

    const/4 v5, 0x1

    goto :goto_0

    :cond_1
    move v5, v3

    :goto_0
    const/4 v6, 0x0

    .line 46
    invoke-virtual {v1, v6, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    add-int/lit8 v3, v3, 0x1

    .line 47
    invoke-virtual {v1, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    .line 48
    invoke-static {v5}, Lcom/jcraft/jsch/Util;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    new-array v4, v4, [[B

    .line 49
    invoke-direct {v0, v1, v4}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;[[B)Z

    move-result v5

    const-string v7, "/"

    if-nez v5, :cond_3

    .line 50
    invoke-virtual {v3, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_2

    .line 51
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 52
    :cond_2
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/jcraft/jsch/Util;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    return-object v2

    .line 53
    :cond_3
    aget-object v1, v4, v6

    .line 54
    iget-object v4, v0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v3, v4}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v4

    invoke-direct {v0, v4}, Lcom/jcraft/jsch/ChannelSftp;->e([B)V

    .line 55
    new-instance v4, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {v4, v0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 56
    iget-object v5, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v0, v5, v4}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 57
    iget v5, v4, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 58
    iget v8, v4, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 59
    iget-object v9, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v0, v9, v5}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const-string v5, ""

    const/4 v9, 0x4

    const/16 v10, 0x65

    if-eq v8, v10, :cond_5

    const/16 v11, 0x66

    if-ne v8, v11, :cond_4

    goto :goto_1

    .line 60
    :cond_4
    new-instance v1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v1, v9, v5}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v1

    :cond_5
    :goto_1
    const/4 v11, 0x0

    if-eq v8, v10, :cond_14

    .line 61
    iget-object v8, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v8}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v8

    move-object v12, v11

    .line 62
    :goto_2
    invoke-direct {v0, v8}, Lcom/jcraft/jsch/ChannelSftp;->h([B)V

    .line 63
    iget-object v13, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v0, v13, v4}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 64
    iget v13, v4, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 65
    iget v14, v4, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    if-eq v14, v10, :cond_7

    const/16 v15, 0x68

    if-ne v14, v15, :cond_6

    goto :goto_3

    .line 66
    :cond_6
    new-instance v1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v1, v9, v5}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v1

    :cond_7
    :goto_3
    if-ne v14, v10, :cond_9

    .line 67
    iget-object v1, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v0, v1, v13}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    .line 68
    invoke-direct {v0, v8, v4}, Lcom/jcraft/jsch/ChannelSftp;->a([BLcom/jcraft/jsch/ChannelSftp$Header;)Z

    move-result v1

    if-eqz v1, :cond_8

    return-object v2

    :cond_8
    return-object v11

    .line 69
    :cond_9
    iget-object v14, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v14}, Lcom/jcraft/jsch/Buffer;->m()V

    .line 70
    iget-object v14, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget-object v14, v14, Lcom/jcraft/jsch/Buffer;->b:[B

    invoke-direct {v0, v14, v6, v9}, Lcom/jcraft/jsch/ChannelSftp;->c([BII)I

    add-int/lit8 v13, v13, -0x4

    .line 71
    iget-object v14, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v14}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result v14

    .line 72
    iget-object v15, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v15}, Lcom/jcraft/jsch/Buffer;->l()V

    :goto_4
    if-gtz v14, :cond_a

    goto :goto_6

    :cond_a
    if-lez v13, :cond_d

    .line 73
    iget-object v15, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v15}, Lcom/jcraft/jsch/Buffer;->n()V

    .line 74
    iget-object v15, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget-object v6, v15, Lcom/jcraft/jsch/Buffer;->b:[B

    array-length v9, v6

    iget v15, v15, Lcom/jcraft/jsch/Buffer;->c:I

    add-int v10, v15, v13

    if-le v9, v10, :cond_b

    move v6, v13

    goto :goto_5

    :cond_b
    array-length v6, v6

    sub-int/2addr v6, v15

    .line 75
    :goto_5
    iget-object v9, v0, Lcom/jcraft/jsch/ChannelSftp;->Q:Ljava/io/InputStream;

    iget-object v10, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget-object v15, v10, Lcom/jcraft/jsch/Buffer;->b:[B

    iget v10, v10, Lcom/jcraft/jsch/Buffer;->c:I

    invoke-virtual {v9, v15, v10, v6}, Ljava/io/InputStream;->read([BII)I

    move-result v6

    if-gtz v6, :cond_c

    :goto_6
    const/4 v6, 0x0

    const/4 v9, 0x4

    const/16 v10, 0x65

    goto :goto_2

    .line 76
    :cond_c
    iget-object v9, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v10, v9, Lcom/jcraft/jsch/Buffer;->c:I

    add-int/2addr v10, v6

    iput v10, v9, Lcom/jcraft/jsch/Buffer;->c:I

    sub-int/2addr v13, v6

    .line 77
    :cond_d
    iget-object v6, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v6}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v6

    .line 78
    iget v9, v0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    const/4 v10, 0x3

    if-gt v9, v10, :cond_e

    .line 79
    iget-object v9, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v9}, Lcom/jcraft/jsch/Buffer;->j()[B

    .line 80
    :cond_e
    iget-object v9, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-static {v9}, Lcom/jcraft/jsch/SftpATTRS;->b(Lcom/jcraft/jsch/Buffer;)Lcom/jcraft/jsch/SftpATTRS;

    .line 81
    iget-boolean v9, v0, Lcom/jcraft/jsch/ChannelSftp;->X:Z

    if-nez v9, :cond_f

    .line 82
    iget-object v9, v0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v6, v9}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "UTF-8"

    .line 83
    invoke-static {v9, v10}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v10

    goto :goto_7

    :cond_f
    move-object v10, v6

    move-object v9, v11

    .line 84
    :goto_7
    invoke-static {v1, v10}, Lcom/jcraft/jsch/Util;->b([B[B)Z

    move-result v10

    if-eqz v10, :cond_13

    if-nez v9, :cond_10

    .line 85
    iget-object v9, v0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v6, v9}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object v9

    :cond_10
    if-nez v12, :cond_12

    .line 86
    invoke-virtual {v3, v7}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_11

    .line 87
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v6, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    goto :goto_8

    :cond_11
    move-object v12, v3

    .line 88
    :cond_12
    :goto_8
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v12}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v6, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    :cond_13
    add-int/lit8 v14, v14, -0x1

    const/4 v6, 0x0

    const/4 v9, 0x4

    const/16 v10, 0x65

    goto/16 :goto_4

    .line 89
    :cond_14
    iget-object v1, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result v1

    .line 90
    iget-object v2, v0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v0, v2, v1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V

    goto :goto_a

    :goto_9
    throw v11

    :goto_a
    goto :goto_9
.end method

.method private m([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0x11

    .line 42
    invoke-direct {p0, v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(B[B)V

    return-void
.end method

.method private n(Ljava/lang/String;)Z
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;[[B)Z

    move-result p1

    return p1
.end method

.method private o(Ljava/lang/String;)Z
    .locals 3

    const/4 v0, 0x0

    .line 1
    :try_start_0
    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {p1, v1}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->m([B)V

    .line 2
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {p1, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 3
    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v1, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 4
    iget v1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 5
    iget p1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 6
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v2, v1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v1, 0x69

    if-eq p1, v1, :cond_0

    return v0

    .line 7
    :cond_0
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-static {p1}, Lcom/jcraft/jsch/SftpATTRS;->b(Lcom/jcraft/jsch/Buffer;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object p1

    .line 8
    invoke-virtual {p1}, Lcom/jcraft/jsch/SftpATTRS;->j()Z

    move-result p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return p1

    :catch_0
    return v0
.end method

.method private p(Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;,
            Ljava/lang/Exception;
        }
    .end annotation

    .line 9
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->m(Ljava/lang/String;)Ljava/util/Vector;

    move-result-object v0

    .line 10
    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    const/4 p1, 0x0

    .line 11
    invoke-virtual {v0, p1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    return-object p1

    .line 12
    :cond_0
    new-instance v1, Lcom/jcraft/jsch/SftpException;

    const/4 v2, 0x4

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {v3, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string p1, " is not unique: "

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/util/Vector;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v1, v2, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v1
.end method

.method private q(Ljava/lang/String;)Ljava/lang/String;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C

    move-result v0

    const/16 v1, 0x2f

    if-ne v0, v1, :cond_0

    return-object p1

    .line 2
    :cond_0
    invoke-direct {p0}, Lcom/jcraft/jsch/ChannelSftp;->r()Ljava/lang/String;

    move-result-object v0

    const-string v1, "/"

    .line 3
    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1

    .line 4
    :cond_1
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private r()Ljava/lang/String;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->T:Ljava/lang/String;

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/jcraft/jsch/ChannelSftp;->p()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->T:Ljava/lang/String;

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->T:Ljava/lang/String;

    return-object v0
.end method

.method private r(Ljava/lang/String;)V
    .locals 0

    .line 4
    iput-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->T:Ljava/lang/String;

    return-void
.end method

.method private s()V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Packet;->b()V

    const/4 v0, 0x1

    const/4 v1, 0x5

    .line 2
    invoke-direct {p0, v0, v1}, Lcom/jcraft/jsch/ChannelSftp;->a(BI)V

    .line 3
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Lcom/jcraft/jsch/Buffer;->c(I)V

    .line 4
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->h()Lcom/jcraft/jsch/Session;

    move-result-object v0

    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    const/16 v2, 0x9

    invoke-virtual {v0, v1, p0, v2}, Lcom/jcraft/jsch/Session;->a(Lcom/jcraft/jsch/Packet;Lcom/jcraft/jsch/Channel;I)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;Lcom/jcraft/jsch/SftpProgressMonitor;J)Ljava/io/InputStream;
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    const/4 v1, 0x4

    .line 27
    :try_start_0
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v2, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v2}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 28
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 29
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->p(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 30
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v4, p1}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1

    .line 31
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a([B)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v2

    if-eqz p2, :cond_0

    const/4 v3, 0x1

    const-string v5, "??"

    .line 32
    invoke-virtual {v2}, Lcom/jcraft/jsch/SftpATTRS;->h()J

    move-result-wide v6

    move-object v2, p2

    invoke-interface/range {v2 .. v7}, Lcom/jcraft/jsch/SftpProgressMonitor;->a(ILjava/lang/String;Ljava/lang/String;J)V

    .line 33
    :cond_0
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->f([B)V

    .line 34
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {p1, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 35
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v2, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 36
    iget v2, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 37
    iget p1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 38
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v3, v2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v2, 0x65

    if-eq p1, v2, :cond_2

    const/16 v3, 0x66

    if-ne p1, v3, :cond_1

    goto :goto_0

    .line 39
    :cond_1
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1

    :cond_2
    :goto_0
    if-eq p1, v2, :cond_3

    .line 40
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v7

    .line 41
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->Z:Lcom/jcraft/jsch/ChannelSftp$RequestQueue;

    invoke-virtual {p1}, Lcom/jcraft/jsch/ChannelSftp$RequestQueue;->c()V

    .line 42
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$2;

    move-object v2, p1

    move-object v3, p0

    move-wide v4, p3

    move-object v6, p2

    invoke-direct/range {v2 .. v7}, Lcom/jcraft/jsch/ChannelSftp$2;-><init>(Lcom/jcraft/jsch/ChannelSftp;JLcom/jcraft/jsch/SftpProgressMonitor;[B)V

    return-object p1

    .line 43
    :cond_3
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    .line 44
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p2, p1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p1, 0x0

    throw p1

    :catch_0
    move-exception p1

    .line 45
    instance-of p2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez p2, :cond_4

    .line 46
    new-instance p2, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p2, v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw p2

    .line 47
    :cond_4
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    throw p1
.end method

.method public a(Ljava/lang/String;Lcom/jcraft/jsch/SftpProgressMonitor;I)Ljava/io/OutputStream;
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-wide/16 v4, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move v3, p3

    .line 3
    invoke-virtual/range {v0 .. v5}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;Lcom/jcraft/jsch/SftpProgressMonitor;IJ)Ljava/io/OutputStream;

    move-result-object p1

    return-object p1
.end method

.method public a(Ljava/lang/String;Lcom/jcraft/jsch/SftpProgressMonitor;IJ)Ljava/io/OutputStream;
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    const/4 v1, 0x4

    .line 4
    :try_start_0
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v2, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v2}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 5
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 6
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->p(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 7
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->o(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_8

    .line 8
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {p1, v2}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    const-wide/16 v2, 0x0

    const/4 v4, 0x2

    const/4 v5, 0x1

    if-eq p3, v5, :cond_0

    if-ne p3, v4, :cond_1

    .line 9
    :cond_0
    :try_start_1
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->a([B)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v6

    .line 10
    invoke-virtual {v6}, Lcom/jcraft/jsch/SftpATTRS;->h()J

    move-result-wide v2
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    nop

    :cond_1
    :goto_0
    if-nez p3, :cond_2

    .line 11
    :try_start_2
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->g([B)V

    goto :goto_1

    .line 12
    :cond_2
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->d([B)V

    .line 13
    :goto_1
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {p1, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 14
    iget-object v6, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v6, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 15
    iget v6, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 16
    iget p1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 17
    iget-object v7, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v7, v6}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v6, 0x65

    if-eq p1, v6, :cond_4

    const/16 v7, 0x66

    if-ne p1, v7, :cond_3

    goto :goto_2

    .line 18
    :cond_3
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1

    :cond_4
    :goto_2
    if-eq p1, v6, :cond_7

    .line 19
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object p1

    if-eq p3, v5, :cond_5

    if-ne p3, v4, :cond_6

    :cond_5
    add-long/2addr p4, v2

    :cond_6
    new-array p3, v5, [J

    const/4 v2, 0x0

    aput-wide p4, p3, v2

    .line 20
    new-instance p4, Lcom/jcraft/jsch/ChannelSftp$1;

    invoke-direct {p4, p0, p1, p3, p2}, Lcom/jcraft/jsch/ChannelSftp$1;-><init>(Lcom/jcraft/jsch/ChannelSftp;[B[JLcom/jcraft/jsch/SftpProgressMonitor;)V

    return-object p4

    .line 21
    :cond_7
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    .line 22
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p2, p1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    const/4 p1, 0x0

    throw p1

    .line 23
    :cond_8
    :try_start_3
    new-instance p2, Lcom/jcraft/jsch/SftpException;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p3, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string p1, " is a directory"

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p2, v1, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p2
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    :catch_1
    move-exception p1

    .line 24
    instance-of p2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez p2, :cond_9

    .line 25
    new-instance p2, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p2, v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw p2

    .line 26
    :cond_9
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    throw p1
.end method

.method public a(Ljava/lang/String;I)V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 161
    :try_start_0
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v0, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 162
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 163
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->m(Ljava/lang/String;)Ljava/util/Vector;

    move-result-object p1

    .line 164
    invoke-virtual {p1}, Ljava/util/Vector;->size()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    if-lt v2, v0, :cond_0

    return-void

    .line 165
    :cond_0
    invoke-virtual {p1, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 166
    invoke-direct {p0, v3}, Lcom/jcraft/jsch/ChannelSftp;->l(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v4

    .line 167
    invoke-virtual {v4, v1}, Lcom/jcraft/jsch/SftpATTRS;->a(I)V

    .line 168
    invoke-virtual {v4}, Lcom/jcraft/jsch/SftpATTRS;->a()I

    move-result v5

    invoke-virtual {v4, v5, p2}, Lcom/jcraft/jsch/SftpATTRS;->a(II)V

    .line 169
    invoke-direct {p0, v3, v4}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;Lcom/jcraft/jsch/SftpATTRS;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :catch_0
    move-exception p1

    .line 170
    instance-of p2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez p2, :cond_1

    .line 171
    new-instance p2, Lcom/jcraft/jsch/SftpException;

    const/4 v0, 0x4

    const-string v1, ""

    invoke-direct {p2, v0, v1, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw p2

    .line 172
    :cond_1
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method public a(Ljava/lang/String;Lcom/jcraft/jsch/ChannelSftp$LsEntrySelector;)V
    .locals 17
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    move-object/from16 v1, p0

    const-string v2, ""

    const/4 v3, 0x4

    .line 48
    :try_start_0
    iget-object v0, v1, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v0, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 49
    invoke-direct/range {p0 .. p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 50
    new-instance v4, Ljava/util/Vector;

    invoke-direct {v4}, Ljava/util/Vector;-><init>()V

    const/16 v4, 0x2f

    .line 51
    invoke-virtual {v0, v4}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v4

    const/4 v5, 0x1

    if-nez v4, :cond_0

    const/4 v6, 0x1

    goto :goto_0

    :cond_0
    move v6, v4

    :goto_0
    const/4 v7, 0x0

    .line 52
    invoke-virtual {v0, v7, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    add-int/2addr v4, v5

    .line 53
    invoke-virtual {v0, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v4

    .line 54
    invoke-static {v6}, Lcom/jcraft/jsch/Util;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    new-array v8, v5, [[B

    .line 55
    invoke-direct {v1, v4, v8}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;[[B)Z

    move-result v9

    const/4 v10, 0x0

    if-eqz v9, :cond_1

    .line 56
    aget-object v0, v8, v7

    goto :goto_1

    .line 57
    :cond_1
    invoke-static {v0}, Lcom/jcraft/jsch/Util;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 58
    invoke-direct {v1, v0}, Lcom/jcraft/jsch/ChannelSftp;->l(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v11

    .line 59
    invoke-virtual {v11}, Lcom/jcraft/jsch/SftpATTRS;->j()Z

    move-result v11

    if-eqz v11, :cond_2

    move-object v6, v0

    move-object v0, v10

    goto :goto_1

    .line 60
    :cond_2
    iget-boolean v0, v1, Lcom/jcraft/jsch/ChannelSftp;->X:Z

    if-eqz v0, :cond_3

    .line 61
    aget-object v0, v8, v7

    .line 62
    invoke-static {v0}, Lcom/jcraft/jsch/Util;->d([B)[B

    move-result-object v0

    goto :goto_1

    .line 63
    :cond_3
    invoke-static {v4}, Lcom/jcraft/jsch/Util;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 64
    iget-object v4, v1, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v0, v4}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v0

    .line 65
    :goto_1
    iget-object v4, v1, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v6, v4}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v4

    invoke-direct {v1, v4}, Lcom/jcraft/jsch/ChannelSftp;->e([B)V

    .line 66
    new-instance v4, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {v4, v1}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 67
    iget-object v6, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v1, v6, v4}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 68
    iget v6, v4, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 69
    iget v8, v4, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 70
    iget-object v11, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v1, v11, v6}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v6, 0x65

    if-eq v8, v6, :cond_5

    const/16 v11, 0x66

    if-ne v8, v11, :cond_4

    goto :goto_2

    .line 71
    :cond_4
    new-instance v0, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v0, v3, v2}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v0

    :cond_5
    :goto_2
    if-eq v8, v6, :cond_17

    .line 72
    iget-object v8, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v8}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v8

    const/4 v11, 0x0

    :goto_3
    if-eqz v11, :cond_6

    goto :goto_5

    .line 73
    :cond_6
    invoke-direct {v1, v8}, Lcom/jcraft/jsch/ChannelSftp;->h([B)V

    .line 74
    iget-object v12, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v1, v12, v4}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 75
    iget v12, v4, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 76
    iget v13, v4, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    if-eq v13, v6, :cond_8

    const/16 v14, 0x68

    if-ne v13, v14, :cond_7

    goto :goto_4

    .line 77
    :cond_7
    new-instance v0, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v0, v3, v2}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v0

    :cond_8
    :goto_4
    if-ne v13, v6, :cond_a

    .line 78
    iget-object v0, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v1, v0, v12}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    .line 79
    iget-object v0, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result v0

    if-ne v0, v5, :cond_9

    .line 80
    :goto_5
    invoke-direct {v1, v8, v4}, Lcom/jcraft/jsch/ChannelSftp;->a([BLcom/jcraft/jsch/ChannelSftp$Header;)Z

    return-void

    .line 81
    :cond_9
    iget-object v4, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v1, v4, v0}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    throw v10

    .line 82
    :cond_a
    :try_start_1
    iget-object v13, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v13}, Lcom/jcraft/jsch/Buffer;->m()V

    .line 83
    iget-object v13, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget-object v13, v13, Lcom/jcraft/jsch/Buffer;->b:[B

    invoke-direct {v1, v13, v7, v3}, Lcom/jcraft/jsch/ChannelSftp;->c([BII)I

    add-int/lit8 v12, v12, -0x4

    .line 84
    iget-object v13, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v13}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result v13

    .line 85
    iget-object v14, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v14}, Lcom/jcraft/jsch/Buffer;->l()V

    .line 86
    iget-boolean v14, v1, Lcom/jcraft/jsch/ChannelSftp;->Y:Z

    if-eqz v14, :cond_b

    .line 87
    invoke-direct {v1, v13, v12, v0, v9}, Lcom/jcraft/jsch/ChannelSftp;->a(II[BZ)V

    :cond_b
    :goto_6
    if-gtz v13, :cond_c

    goto :goto_3

    :cond_c
    if-lez v12, :cond_e

    .line 88
    iget-object v14, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v14}, Lcom/jcraft/jsch/Buffer;->n()V

    .line 89
    iget-object v14, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget-object v14, v14, Lcom/jcraft/jsch/Buffer;->b:[B

    array-length v14, v14

    iget-object v15, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v15, v15, Lcom/jcraft/jsch/Buffer;->c:I

    add-int/2addr v15, v12

    if-le v14, v15, :cond_d

    move v14, v12

    goto :goto_7

    .line 90
    :cond_d
    iget-object v14, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget-object v14, v14, Lcom/jcraft/jsch/Buffer;->b:[B

    array-length v14, v14

    iget-object v15, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v15, v15, Lcom/jcraft/jsch/Buffer;->c:I

    sub-int/2addr v14, v15

    .line 91
    :goto_7
    iget-object v15, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget-object v15, v15, Lcom/jcraft/jsch/Buffer;->b:[B

    iget-object v6, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v6, v6, Lcom/jcraft/jsch/Buffer;->c:I

    invoke-direct {v1, v15, v6, v14}, Lcom/jcraft/jsch/ChannelSftp;->c([BII)I

    move-result v6

    .line 92
    iget-object v14, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    iget v15, v14, Lcom/jcraft/jsch/Buffer;->c:I

    add-int/2addr v15, v6

    iput v15, v14, Lcom/jcraft/jsch/Buffer;->c:I

    sub-int/2addr v12, v6

    .line 93
    :cond_e
    iget-object v6, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v6}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v6

    .line 94
    iget v14, v1, Lcom/jcraft/jsch/ChannelSftp;->N:I

    const/4 v15, 0x3

    if-gt v14, v15, :cond_f

    .line 95
    iget-object v14, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v14}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v14

    goto :goto_8

    :cond_f
    move-object v14, v10

    .line 96
    :goto_8
    iget-object v15, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-static {v15}, Lcom/jcraft/jsch/SftpATTRS;->b(Lcom/jcraft/jsch/Buffer;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v15

    if-ne v11, v5, :cond_10

    add-int/lit8 v13, v13, -0x1

    const/16 v6, 0x65

    goto :goto_6

    :cond_10
    if-nez v0, :cond_11

    move-object v5, v10

    const/4 v7, 0x1

    goto :goto_a

    :cond_11
    if-nez v9, :cond_12

    .line 97
    invoke-static {v0, v6}, Lcom/jcraft/jsch/Util;->a([B[B)Z

    move-result v16

    move-object v5, v10

    move/from16 v7, v16

    goto :goto_a

    .line 98
    :cond_12
    iget-boolean v5, v1, Lcom/jcraft/jsch/ChannelSftp;->X:Z

    if-nez v5, :cond_13

    .line 99
    iget-object v5, v1, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v6, v5}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const-string v7, "UTF-8"

    .line 100
    invoke-static {v5, v7}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v7

    goto :goto_9

    :cond_13
    move-object v7, v6

    move-object v5, v10

    .line 101
    :goto_9
    invoke-static {v0, v7}, Lcom/jcraft/jsch/Util;->b([B[B)Z

    move-result v7

    :goto_a
    if-eqz v7, :cond_16

    if-nez v5, :cond_14

    .line 102
    iget-object v5, v1, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v6, v5}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object v5

    :cond_14
    if-nez v14, :cond_15

    .line 103
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-virtual {v15}, Lcom/jcraft/jsch/SftpATTRS;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, " "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    goto :goto_b

    .line 104
    :cond_15
    iget-object v6, v1, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v14, v6}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 105
    :goto_b
    new-instance v7, Lcom/jcraft/jsch/ChannelSftp$LsEntry;

    invoke-direct {v7, v1, v5, v6, v15}, Lcom/jcraft/jsch/ChannelSftp$LsEntry;-><init>(Lcom/jcraft/jsch/ChannelSftp;Ljava/lang/String;Ljava/lang/String;Lcom/jcraft/jsch/SftpATTRS;)V

    move-object/from16 v5, p2

    invoke-interface {v5, v7}, Lcom/jcraft/jsch/ChannelSftp$LsEntrySelector;->a(Lcom/jcraft/jsch/ChannelSftp$LsEntry;)I

    move-result v6

    move v11, v6

    goto :goto_c

    :cond_16
    move-object/from16 v5, p2

    :goto_c
    add-int/lit8 v13, v13, -0x1

    const/4 v5, 0x1

    const/16 v6, 0x65

    const/4 v7, 0x0

    goto/16 :goto_6

    .line 106
    :cond_17
    iget-object v0, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result v0

    .line 107
    iget-object v4, v1, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v1, v4, v0}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    throw v10

    :catch_0
    move-exception v0

    .line 108
    instance-of v4, v0, Lcom/jcraft/jsch/SftpException;

    if-nez v4, :cond_18

    .line 109
    new-instance v4, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v4, v3, v2, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw v4

    .line 110
    :cond_18
    check-cast v0, Lcom/jcraft/jsch/SftpException;

    goto :goto_e

    :goto_d
    throw v0

    :goto_e
    goto :goto_d
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    .line 134
    iget v1, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    const/4 v2, 0x2

    if-lt v1, v2, :cond_6

    const/4 v1, 0x4

    .line 135
    :try_start_0
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v3, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v3}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 136
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 137
    invoke-direct {p0, p2}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 138
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->p(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 139
    invoke-direct {p0, p2}, Lcom/jcraft/jsch/ChannelSftp;->m(Ljava/lang/String;)Ljava/util/Vector;

    move-result-object v3

    .line 140
    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v4

    if-ge v4, v2, :cond_4

    const/4 v2, 0x1

    if-ne v4, v2, :cond_0

    const/4 p2, 0x0

    .line 141
    invoke-virtual {v3, p2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    goto :goto_0

    .line 142
    :cond_0
    invoke-direct {p0, p2}, Lcom/jcraft/jsch/ChannelSftp;->n(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_3

    .line 143
    invoke-static {p2}, Lcom/jcraft/jsch/Util;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 144
    :goto_0
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {p1, v2}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1

    .line 145
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {p2, v2}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p2

    .line 146
    invoke-direct {p0, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->a([B[B)V

    .line 147
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {p1, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 148
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p2, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 149
    iget p2, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 150
    iget p1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 151
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v2, p2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 p2, 0x65

    if-ne p1, p2, :cond_2

    .line 152
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    if-nez p1, :cond_1

    return-void

    .line 153
    :cond_1
    iget-object p2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p2, p1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p1, 0x0

    throw p1

    .line 154
    :cond_2
    :try_start_1
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1

    .line 155
    :cond_3
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, p2}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1

    .line 156
    :cond_4
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-virtual {v3}, Ljava/util/Vector;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, v1, p2}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    move-exception p1

    .line 157
    instance-of p2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez p2, :cond_5

    .line 158
    new-instance p2, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p2, v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw p2

    .line 159
    :cond_5
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    throw p1

    .line 160
    :cond_6
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    const/16 p2, 0x8

    const-string v0, "The remote sshd is too old to support rename operation."

    invoke-direct {p1, p2, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1
.end method

.method public b()V
    .locals 0

    .line 34
    invoke-super {p0}, Lcom/jcraft/jsch/Channel;->b()V

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const/4 v0, 0x4

    .line 3
    :try_start_0
    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v1, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v1}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 4
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 5
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->p(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 6
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->k(Ljava/lang/String;)[B

    move-result-object v1

    .line 7
    invoke-direct {p0, v1}, Lcom/jcraft/jsch/ChannelSftp;->a([B)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v2

    .line 8
    invoke-virtual {v2}, Lcom/jcraft/jsch/SftpATTRS;->b()I

    move-result v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    and-int/2addr v3, v0

    const-string v4, "Can\'t change directory: "

    if-eqz v3, :cond_1

    .line 9
    :try_start_1
    invoke-virtual {v2}, Lcom/jcraft/jsch/SftpATTRS;->j()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 10
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v1, p1}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->r(Ljava/lang/String;)V

    return-void

    .line 11
    :cond_0
    new-instance v1, Lcom/jcraft/jsch/SftpException;

    .line 12
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 13
    invoke-direct {v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v1

    .line 14
    :cond_1
    new-instance v1, Lcom/jcraft/jsch/SftpException;

    .line 15
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 16
    invoke-direct {v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    move-exception p1

    .line 17
    instance-of v1, p1, Lcom/jcraft/jsch/SftpException;

    if-nez v1, :cond_2

    .line 18
    new-instance v1, Lcom/jcraft/jsch/SftpException;

    const-string v2, ""

    invoke-direct {v1, v0, v2, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw v1

    .line 19
    :cond_2
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    throw p1
.end method

.method public c(Ljava/lang/String;)Ljava/util/Vector;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 2
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    .line 3
    new-instance v1, Lcom/jcraft/jsch/ChannelSftp$3;

    invoke-direct {v1, p0, v0}, Lcom/jcraft/jsch/ChannelSftp$3;-><init>(Lcom/jcraft/jsch/ChannelSftp;Ljava/util/Vector;)V

    .line 4
    invoke-virtual {p0, p1, v1}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;Lcom/jcraft/jsch/ChannelSftp$LsEntrySelector;)V

    return-object v0
.end method

.method public d(Ljava/lang/String;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    const/4 v1, 0x4

    .line 2
    :try_start_0
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v2, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v2}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 3
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 4
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {p1, v2}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1

    const/4 v2, 0x0

    invoke-direct {p0, p1, v2}, Lcom/jcraft/jsch/ChannelSftp;->a([BLcom/jcraft/jsch/SftpATTRS;)V

    .line 5
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {p1, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 6
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v3, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 7
    iget v3, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 8
    iget p1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 9
    iget-object v4, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v4, v3}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v3, 0x65

    if-ne p1, v3, :cond_1

    .line 10
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 11
    :cond_0
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v3, p1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    throw v2

    .line 12
    :cond_1
    :try_start_1
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    move-exception p1

    .line 13
    instance-of v2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez v2, :cond_2

    .line 14
    new-instance v2, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v2, v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    .line 15
    :cond_2
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    throw p1
.end method

.method public e(Ljava/lang/String;)Ljava/io/OutputStream;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 2
    invoke-virtual {p0, p1, v0, v1}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;Lcom/jcraft/jsch/SftpProgressMonitor;I)Ljava/io/OutputStream;

    move-result-object p1

    return-object p1
.end method

.method public f(Ljava/lang/String;)Ljava/lang/String;
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    const/4 v1, 0x4

    .line 1
    :try_start_0
    iget v2, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    const/4 v3, 0x3

    if-lt v2, v3, :cond_5

    .line 2
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v2, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v2}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 3
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 4
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->p(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 5
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {p1, v2}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->i([B)V

    .line 6
    new-instance p1, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {p1, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 7
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v2, p1}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 8
    iget v2, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 9
    iget p1, p1, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 10
    iget-object v4, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v4, v2}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v2, 0x65

    const/16 v4, 0x68

    if-eq p1, v2, :cond_1

    if-ne p1, v4, :cond_0

    goto :goto_0

    .line 11
    :cond_0
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1

    :cond_1
    :goto_0
    const/4 v2, 0x0

    if-ne p1, v4, :cond_4

    .line 12
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    const/4 v4, 0x0

    :goto_1
    if-lt v4, p1, :cond_2

    .line 13
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v2, p1}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1

    .line 14
    :cond_2
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v2}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v2

    .line 15
    iget v5, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    if-gt v5, v3, :cond_3

    .line 16
    iget-object v5, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v5}, Lcom/jcraft/jsch/Buffer;->j()[B

    .line 17
    :cond_3
    iget-object v5, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-static {v5}, Lcom/jcraft/jsch/SftpATTRS;->b(Lcom/jcraft/jsch/Buffer;)Lcom/jcraft/jsch/SftpATTRS;

    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    .line 18
    :cond_4
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result p1

    .line 19
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v3, p1}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    throw v2

    .line 20
    :cond_5
    :try_start_1
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    const/16 v2, 0x8

    const-string v3, "The remote sshd is too old to support symlink operation."

    invoke-direct {p1, v2, v3}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    move-exception p1

    .line 21
    instance-of v2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez v2, :cond_6

    .line 22
    new-instance v2, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v2, v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    .line 23
    :cond_6
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    goto :goto_3

    :goto_2
    throw p1

    :goto_3
    goto :goto_2
.end method

.method public g(Ljava/lang/String;)V
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    const/4 v1, 0x4

    .line 1
    :try_start_0
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v2, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v2}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 2
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 3
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->m(Ljava/lang/String;)Ljava/util/Vector;

    move-result-object p1

    .line 4
    invoke-virtual {p1}, Ljava/util/Vector;->size()I

    move-result v2

    .line 5
    new-instance v3, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {v3, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    const/4 v4, 0x0

    :goto_0
    if-lt v4, v2, :cond_0

    return-void

    .line 6
    :cond_0
    invoke-virtual {p1, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    .line 7
    iget-object v6, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v5, v6}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v5

    invoke-direct {p0, v5}, Lcom/jcraft/jsch/ChannelSftp;->k([B)V

    .line 8
    iget-object v5, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v5, v3}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 9
    iget v5, v3, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 10
    iget v6, v3, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 11
    iget-object v7, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v7, v5}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v5, 0x65

    if-ne v6, v5, :cond_2

    .line 12
    iget-object v5, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v5}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result v5

    if-nez v5, :cond_1

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 13
    :cond_1
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p1, v5}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p1, 0x0

    throw p1

    .line 14
    :cond_2
    :try_start_1
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    move-exception p1

    .line 15
    instance-of v2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez v2, :cond_3

    .line 16
    new-instance v2, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v2, v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    .line 17
    :cond_3
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method public h(Ljava/lang/String;)V
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    const/4 v1, 0x4

    .line 1
    :try_start_0
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v2, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v2}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 2
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 3
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->m(Ljava/lang/String;)Ljava/util/Vector;

    move-result-object p1

    .line 4
    invoke-virtual {p1}, Ljava/util/Vector;->size()I

    move-result v2

    .line 5
    new-instance v3, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {v3, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    const/4 v4, 0x0

    :goto_0
    if-lt v4, v2, :cond_0

    return-void

    .line 6
    :cond_0
    invoke-virtual {p1, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    .line 7
    iget-object v6, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v5, v6}, Lcom/jcraft/jsch/Util;->b(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v5

    invoke-direct {p0, v5}, Lcom/jcraft/jsch/ChannelSftp;->l([B)V

    .line 8
    iget-object v5, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v5, v3}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 9
    iget v5, v3, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    .line 10
    iget v6, v3, Lcom/jcraft/jsch/ChannelSftp$Header;->b:I

    .line 11
    iget-object v7, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v7, v5}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    const/16 v5, 0x65

    if-ne v6, v5, :cond_2

    .line 12
    iget-object v5, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v5}, Lcom/jcraft/jsch/Buffer;->c()I

    move-result v5

    if-nez v5, :cond_1

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 13
    :cond_1
    iget-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, p1, v5}, Lcom/jcraft/jsch/ChannelSftp;->b(Lcom/jcraft/jsch/Buffer;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p1, 0x0

    throw p1

    .line 14
    :cond_2
    :try_start_1
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    move-exception p1

    .line 15
    instance-of v2, p1, Lcom/jcraft/jsch/SftpException;

    if-nez v2, :cond_3

    .line 16
    new-instance v2, Lcom/jcraft/jsch/SftpException;

    invoke-direct {v2, v1, v0, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    .line 17
    :cond_3
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method i()V
    .locals 0

    return-void
.end method

.method public i(Ljava/lang/String;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, "AUTO"

    .line 2
    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 p1, 0x1

    .line 3
    iput-boolean p1, p0, Lcom/jcraft/jsch/ChannelSftp;->Y:Z

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/jcraft/jsch/ChannelSftp;->Y:Z

    .line 5
    invoke-virtual {p0}, Lcom/jcraft/jsch/ChannelSftp;->q()I

    move-result v0

    const/4 v1, 0x4

    const-string v2, "UTF-8"

    if-gt v1, v0, :cond_2

    const/4 v3, 0x5

    if-gt v0, v3, :cond_2

    .line 6
    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_0

    .line 7
    :cond_1
    new-instance p1, Lcom/jcraft/jsch/SftpException;

    const-string v0, "The encoding can not be changed for this sftp server."

    invoke-direct {p1, v1, v0}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw p1

    .line 8
    :cond_2
    :goto_0
    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    move-object p1, v2

    .line 9
    :cond_3
    iput-object p1, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    .line 10
    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    iput-boolean p1, p0, Lcom/jcraft/jsch/ChannelSftp;->X:Z

    return-void
.end method

.method public j(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v0, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 2
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 3
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->p(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 4
    invoke-direct {p0, p1}, Lcom/jcraft/jsch/ChannelSftp;->l(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    move-exception p1

    .line 5
    instance-of v0, p1, Lcom/jcraft/jsch/SftpException;

    if-nez v0, :cond_0

    .line 6
    new-instance v0, Lcom/jcraft/jsch/SftpException;

    const/4 v1, 0x4

    const-string v2, ""

    invoke-direct {v0, v1, v2, p1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw v0

    .line 7
    :cond_0
    check-cast p1, Lcom/jcraft/jsch/SftpException;

    throw p1
.end method

.method public m()V
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/JSchException;
        }
    .end annotation

    const-string v0, "hardlink@openssh.com"

    const-string v1, "statvfs@openssh.com"

    const-string v2, "posix-rename@openssh.com"

    .line 1
    :try_start_0
    new-instance v3, Ljava/io/PipedOutputStream;

    invoke-direct {v3}, Ljava/io/PipedOutputStream;-><init>()V

    .line 2
    iget-object v4, p0, Lcom/jcraft/jsch/Channel;->i:Lcom/jcraft/jsch/IO;

    invoke-virtual {v4, v3}, Lcom/jcraft/jsch/IO;->a(Ljava/io/OutputStream;)V

    .line 3
    new-instance v4, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    iget v5, p0, Lcom/jcraft/jsch/Channel;->h:I

    invoke-direct {v4, p0, v3, v5}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;-><init>(Lcom/jcraft/jsch/Channel;Ljava/io/PipedOutputStream;I)V

    .line 4
    iget-object v3, p0, Lcom/jcraft/jsch/Channel;->i:Lcom/jcraft/jsch/IO;

    invoke-virtual {v3, v4}, Lcom/jcraft/jsch/IO;->a(Ljava/io/InputStream;)V

    .line 5
    iget-object v3, p0, Lcom/jcraft/jsch/Channel;->i:Lcom/jcraft/jsch/IO;

    iget-object v3, v3, Lcom/jcraft/jsch/IO;->a:Ljava/io/InputStream;

    iput-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    .line 6
    new-instance v3, Ljava/io/BufferedInputStream;

    iget-object v4, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    invoke-direct {v3, v4}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V

    iput-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->Q:Ljava/io/InputStream;

    if-eqz v3, :cond_6

    .line 7
    new-instance v3, Lcom/jcraft/jsch/RequestSftp;

    invoke-direct {v3}, Lcom/jcraft/jsch/RequestSftp;-><init>()V

    .line 8
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->h()Lcom/jcraft/jsch/Session;

    move-result-object v4

    invoke-virtual {v3, v4, p0}, Lcom/jcraft/jsch/RequestSftp;->a(Lcom/jcraft/jsch/Session;Lcom/jcraft/jsch/Channel;)V

    .line 9
    new-instance v3, Lcom/jcraft/jsch/Buffer;

    iget v4, p0, Lcom/jcraft/jsch/Channel;->f:I

    invoke-direct {v3, v4}, Lcom/jcraft/jsch/Buffer;-><init>(I)V

    iput-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    .line 10
    new-instance v3, Lcom/jcraft/jsch/Packet;

    iget-object v4, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v3, v4}, Lcom/jcraft/jsch/Packet;-><init>(Lcom/jcraft/jsch/Buffer;)V

    iput-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->J:Lcom/jcraft/jsch/Packet;

    .line 11
    new-instance v3, Lcom/jcraft/jsch/Buffer;

    iget v4, p0, Lcom/jcraft/jsch/Channel;->h:I

    invoke-direct {v3, v4}, Lcom/jcraft/jsch/Buffer;-><init>(I)V

    iput-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->K:Lcom/jcraft/jsch/Buffer;

    .line 12
    new-instance v3, Lcom/jcraft/jsch/Packet;

    iget-object v4, p0, Lcom/jcraft/jsch/ChannelSftp;->K:Lcom/jcraft/jsch/Buffer;

    invoke-direct {v3, v4}, Lcom/jcraft/jsch/Packet;-><init>(Lcom/jcraft/jsch/Buffer;)V

    iput-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->L:Lcom/jcraft/jsch/Packet;

    .line 13
    invoke-direct {p0}, Lcom/jcraft/jsch/ChannelSftp;->s()V

    .line 14
    new-instance v3, Lcom/jcraft/jsch/ChannelSftp$Header;

    invoke-direct {v3, p0}, Lcom/jcraft/jsch/ChannelSftp$Header;-><init>(Lcom/jcraft/jsch/ChannelSftp;)V

    .line 15
    iget-object v4, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v4, v3}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;Lcom/jcraft/jsch/ChannelSftp$Header;)Lcom/jcraft/jsch/ChannelSftp$Header;

    .line 16
    iget v4, v3, Lcom/jcraft/jsch/ChannelSftp$Header;->a:I

    const/high16 v5, 0x40000

    const/4 v6, 0x4

    if-gt v4, v5, :cond_5

    .line 17
    iget v3, v3, Lcom/jcraft/jsch/ChannelSftp$Header;->c:I

    iput v3, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    .line 18
    new-instance v3, Ljava/util/Hashtable;

    invoke-direct {v3}, Ljava/util/Hashtable;-><init>()V

    iput-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->P:Ljava/util/Hashtable;

    if-lez v4, :cond_1

    .line 19
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-direct {p0, v3, v4}, Lcom/jcraft/jsch/ChannelSftp;->a(Lcom/jcraft/jsch/Buffer;I)V

    :goto_0
    if-gtz v4, :cond_0

    goto :goto_1

    .line 20
    :cond_0
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v3}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v3

    .line 21
    array-length v5, v3

    add-int/2addr v5, v6

    sub-int/2addr v4, v5

    .line 22
    iget-object v5, p0, Lcom/jcraft/jsch/ChannelSftp;->I:Lcom/jcraft/jsch/Buffer;

    invoke-virtual {v5}, Lcom/jcraft/jsch/Buffer;->j()[B

    move-result-object v5

    .line 23
    array-length v7, v5

    add-int/2addr v7, v6

    sub-int/2addr v4, v7

    .line 24
    iget-object v7, p0, Lcom/jcraft/jsch/ChannelSftp;->P:Ljava/util/Hashtable;

    invoke-static {v3}, Lcom/jcraft/jsch/Util;->a([B)Ljava/lang/String;

    move-result-object v3

    .line 25
    invoke-static {v5}, Lcom/jcraft/jsch/Util;->a([B)Ljava/lang/String;

    move-result-object v5

    .line 26
    invoke-virtual {v7, v3, v5}, Ljava/util/Hashtable;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 27
    :cond_1
    :goto_1
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->P:Ljava/util/Hashtable;

    invoke-virtual {v3, v2}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-string v4, "1"

    if-eqz v3, :cond_2

    .line 28
    :try_start_1
    iget-object v3, p0, Lcom/jcraft/jsch/ChannelSftp;->P:Ljava/util/Hashtable;

    invoke-virtual {v3, v2}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    const/4 v2, 0x1

    .line 29
    iput-boolean v2, p0, Lcom/jcraft/jsch/ChannelSftp;->S:Z

    .line 30
    :cond_2
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->P:Ljava/util/Hashtable;

    invoke-virtual {v2, v1}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    if-eqz v2, :cond_3

    .line 31
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->P:Ljava/util/Hashtable;

    invoke-virtual {v2, v1}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    const-string v2, "2"

    invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    .line 32
    :cond_3
    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->P:Ljava/util/Hashtable;

    invoke-virtual {v1, v0}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_4

    .line 33
    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->P:Ljava/util/Hashtable;

    invoke-virtual {v1, v0}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    .line 34
    :cond_4
    new-instance v0, Ljava/io/File;

    const-string v1, "."

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->getCanonicalPath()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->V:Ljava/lang/String;

    return-void

    .line 35
    :cond_5
    new-instance v0, Lcom/jcraft/jsch/SftpException;

    .line 36
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "Received message is too long: "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 37
    invoke-direct {v0, v6, v1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v0

    .line 38
    :cond_6
    new-instance v0, Lcom/jcraft/jsch/JSchException;

    const-string v1, "channel is down"

    invoke-direct {v0, v1}, Lcom/jcraft/jsch/JSchException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    move-exception v0

    .line 39
    instance-of v1, v0, Lcom/jcraft/jsch/JSchException;

    if-nez v1, :cond_7

    .line 40
    new-instance v1, Lcom/jcraft/jsch/JSchException;

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Lcom/jcraft/jsch/JSchException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v1

    .line 41
    :cond_7
    check-cast v0, Lcom/jcraft/jsch/JSchException;

    goto :goto_3

    :goto_2
    throw v0

    :goto_3
    goto :goto_2
.end method

.method public o()Ljava/lang/String;
    .locals 1

    .line 9
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    return-object v0
.end method

.method public p()Ljava/lang/String;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    const-string v0, ""

    .line 1
    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->U:Ljava/lang/String;

    if-nez v1, :cond_1

    .line 2
    :try_start_0
    iget-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->R:Ljava/io/InputStream;

    check-cast v1, Lcom/jcraft/jsch/Channel$MyPipedInputStream;

    invoke-virtual {v1}, Lcom/jcraft/jsch/Channel$MyPipedInputStream;->b()V

    .line 3
    invoke-direct {p0, v0}, Lcom/jcraft/jsch/ChannelSftp;->k(Ljava/lang/String;)[B

    move-result-object v1

    .line 4
    iget-object v2, p0, Lcom/jcraft/jsch/ChannelSftp;->W:Ljava/lang/String;

    invoke-static {v1, v2}, Lcom/jcraft/jsch/Util;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/jcraft/jsch/ChannelSftp;->U:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    .line 5
    instance-of v2, v1, Lcom/jcraft/jsch/SftpException;

    if-nez v2, :cond_0

    .line 6
    new-instance v2, Lcom/jcraft/jsch/SftpException;

    const/4 v3, 0x4

    invoke-direct {v2, v3, v0, v1}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    .line 7
    :cond_0
    check-cast v1, Lcom/jcraft/jsch/SftpException;

    throw v1

    .line 8
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/jcraft/jsch/ChannelSftp;->U:Ljava/lang/String;

    return-object v0
.end method

.method public q()I
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/jcraft/jsch/SftpException;
        }
    .end annotation

    .line 5
    invoke-virtual {p0}, Lcom/jcraft/jsch/Channel;->j()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 6
    iget v0, p0, Lcom/jcraft/jsch/ChannelSftp;->N:I

    return v0

    .line 7
    :cond_0
    new-instance v0, Lcom/jcraft/jsch/SftpException;

    const/4 v1, 0x4

    const-string v2, "The channel is not connected."

    invoke-direct {v0, v1, v2}, Lcom/jcraft/jsch/SftpException;-><init>(ILjava/lang/String;)V

    throw v0
.end method
